Description
API and Core artifacts contain some types which are recognized as managed beans but in the same time they declare an illegal bean type, namely a parameterized type that contains a wildcard type parameter:
- org.apache.deltaspike.core.util.Annotateds$AnnotatedCallableComparator
- org.apache.deltaspike.core.util.Annotateds$AnnotatedConstructorComparator
- org.apache.deltaspike.core.util.Annotateds$AnnotatedFieldComparator
- org.apache.deltaspike.core.util.Annotateds$AnnotatedMethodComparator
- org.apache.deltaspike.core.impl.exception.control.ExceptionHandlerComparator
The spec is not clear what should happen in this case (although it would make sense to just ignore the type and log some warning), see also the corresponding issue:
https://issues.jboss.org/browse/CDI-495
I believe these beans should either be completely excluded from scanning (vetoed, etc.) or should have their set of bean types restricted.